<template>
	<view class="list-item" @click="$emit('Click',true)">
		<view class="">
			<q-image :src="item.avatarImg" :width="150" :height="150" radius="25" />
		</view>
		<view class="container">
			<view class="title">标题：{{item.title}}</view>
			<view>发布人：{{item.userName}}</view>
			<view class="">
				{{item.callNumTime?'号源时间':'时间'}}： {{item.callNumTime||item.createTime}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {
			item: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {

			}
		},
		watch: {},
		// 必须要在onReady生命周期，因为onLoad生命周期组件可能尚未创建完毕
		onReady() {},
		onLoad(options) {},
		onShow() {},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.list-item {
		display: flex;
		margin: 20rpx 30rpx 0;
		padding: 20rpx;
		border-radius: 25rpx;
		background-color: #fff;

		.container {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			align-items: flex-start;
			margin-left: 20rpx;

			.title {
				font-weight: 700;
			}
		}
	}
</style>